import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-transition',
  templateUrl: './transition.component.html',
  styleUrls: ['./transition.component.css']
})
export class TransitionComponent implements OnInit {

  constructor() { }

  ngOnInit() {
  }

  showAside(){
    // 原生 js 获取 dom 节点
    var asidedom:any=document.getElementById('aside')
    asidedom.style.transform="translate(0,0)"
  }

  hideAside(){
    var asidedom:any=document.getElementById('aside')
    asidedom.style.transform="translate(100%,0)"
  }
}
